package logback使用;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class test {
    public static final Logger LOGGER= LoggerFactory.getLogger("test.class");

    public static void main(String[] args) {
        try {
            LOGGER.debug("开始记录");
            int a=10;
            int b=0;
            LOGGER.trace("a="+a);
            LOGGER.trace("b="+b);
            System.out.println(a/b);
        } catch (Exception e) {
            e.printStackTrace();
            LOGGER.error("错误:"+e);
        }
    }
}
